<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

  <xsl:import href="../../sys/resolver.xsl"/>
	
	<xsl:variable name="viewObj" select="resolve-uri('../view')"/>
	
  <xsl:template match="uri[@ext = 'html']">
  	<access obj="{$viewObj}" scope="view">
  		<param key="ref">
  			<xsl:attribute name="value">
  				<xsl:value-of select="@relativeName"/>
  				<xsl:apply-templates select="uri-param"/>
  			</xsl:attribute>
  		</param>
  	</access>
  </xsl:template>
	
	<xsl:template match="uri-param">
		<xsl:text>$</xsl:text>
		<xsl:value-of select="@value"/>
	</xsl:template>
  
</xsl:stylesheet>